package com.studio701.carguard.service.imp;

import com.studio701.carguard.pojo.UserEquipment;
import com.studio701.carguard.mapper.UserEquipmentMapper;
import com.studio701.carguard.service.IUserEquipmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xjc
 * @since 2022-04-11
 */
@Service
public class UserEquipmentServiceImpl extends ServiceImpl<UserEquipmentMapper, UserEquipment> implements IUserEquipmentService {

    @Autowired
    UserEquipmentMapper userEquipmentMapper;

    @Override
    public List<UserEquipment> getEquipmentByUserId(Integer id) {
        return userEquipmentMapper.getEquipmentByUserId(id);
    }
}
